<template>
    <div class="top-header">
        <router-link class="th-left" tag="div" to="/" ><i class="iconfont back-icon" v-on:click="clearrouter">&#xe64e;</i></router-link>
        <div style="margin:0 auto;">{{thistitle.slice(3)}}</div>
        <!-- this.$route.params.id接受路由传递的参数 -->
    </div>
</template>
<script>
export default {
    name: 'TopheaderList',
	props: {
		titles:Array,
	},
    data () {
        return {
            thistitle:this.$route.params.id,
        }
    },
	methods: {
        clearrouter () {
            this.$router.go(0)
        },
	},
    mounted () {

    },
}
</script>
<style lang="stylus" scoped>
  @import '~__STYLES__/mixins.styl'

</style>